package pile.pay.service.impl;

import pile.pay.entity.SettingWechat;
import pile.pay.mapper.SettingWechatMapper;
import pile.pay.service.ISettingWechatService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
import pile.pay.entity.ResponseResult;
import org.springframework.beans.factory.annotation.Autowired;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;
import pile.pay.utils.WebUtils;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import pile.pay.entity.PageList;
import org.apache.commons.lang.StringUtils;
import java.util.Arrays;
import pile.pay.params.settingWechat.DeleDTO;
import pile.pay.params.settingWechat.ListDTO;
/**
 * <p>
 * 微信设置 服务实现类
 * </p>
 *
 * @author 郭天义
 * @since 2024-07-01
 */
@Service
public class SettingWechatServiceImpl extends ServiceImpl<SettingWechatMapper, SettingWechat> implements ISettingWechatService {

    @Autowired
    private SettingWechatMapper settingWechatMapper;

    /**
     * 根据小程序渠道查询appid
     * @param channel
     * @return
     */
    @Override
    public SettingWechat selectByMiniChannel(Integer channel) {
        SettingWechat settingWechat= settingWechatMapper.selectByMiniChannel(channel);
        return settingWechat;

    }
}
